import Layout from '@/layouts'
const routeName = 'exam'
const teacher = [
  {
    path: '/exam',
    component: Layout,
    redirect: '/exam/point',
    // name: routeName,
    children: [
      {
        path: 'point',
        // name: routeName,
        component: () => import('@/views/exam/point/index'),
        meta: { title: '知识点练习', needLogin: false }
      },
      {
        path: 'point/topic',
        component: () => import('@/views/exam/point/topic'),
        meta: { title: '知识点练习', needLogin: true }
      },
      {
        path: 'special',
        // name: `${routeName}_special`,
        name: routeName,
        component: () => import('@/views/exam/special/index'),
        meta: { title: '专项练习', needLogin: false }
      },
      {
        path: 'special/topic',
        component: () => import('@/views/exam/special/topic'),
        meta: { title: '专项练习', needLogin: true }
      },
      {
        path: 'paper',
        name: `${routeName}_paper`,
        component: () => import('@/views/exam/paper/index'),
        meta: { title: '公开考试', needLogin: false }
      },
      {
        path: 'paper/topic',
        component: () => import('@/views/exam/paper/topic'),
        meta: { title: '公开考试', needLogin: true }
      },
      {
        path: 'paper/parsing',
        component: () => import('@/views/exam/paper/parsing/index'),
        meta: { needLogin: true }
      },
      {
        path: 'paper/parsing/topic',
        component: () => import('@/views/exam/paper/parsing/topic'),
        meta: { needLogin: true }
      },
      {
        path: 'paper/parsing/wrong',
        component: () => import('@/views/exam/paper/parsing/wrong'),
        meta: { needLogin: true }
      },
      {
        path: 'rollup',
        name: `${routeName}_rollup`,
        component: () => import('@/views/exam/rollup/index'),
        meta: { title: '套卷列表', needLogin: false }
      },
      {
        path: 'rollup/details',
        component: () => import('@/views/exam/rollup/details'),
        meta: { title: '套卷详情', needLogin: true }
      },
      {
        path: 'rollup/topic',
        component: () => import('@/views/exam/rollup/topic'),
        meta: { title: '套卷考试', needLogin: true }
      },
      {
        path: 'wrong/topic',
        component: () => import('@/views/exam/wrong/topic'),
        meta: { needLogin: true }
      },
      {
        path: 'share',
        component: () => import('@/views/exam/share'),
        meta: { needLogin: false }
      }
    ]
  }
]

export default teacher
